package com.ruoyix.weblog.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 用户信息业务对象 blog_user
 *
 * @author ruoyi
 * @date 2024-05-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogUserBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phoneNumber;

    /**
     * 用户邮箱
     */
    @NotBlank(message = "用户邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
    private String email;

    /**
     * 是否启用[0:否，1:是]
     */
    @NotNull(message = "是否启用[0:否，1:是]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer userStatus;

    /**
     * 性别[1:男，2:女，0:保密]
     */
    @NotNull(message = "性别[1:男，2:女，0:保密]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gender;

    /**
     * openId
     */
    @NotBlank(message = "openId不能为空", groups = { AddGroup.class, EditGroup.class })
    private String openId;

    /**
     * 头像
     */
    @NotBlank(message = "头像不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 赞赏
     */
    @NotBlank(message = "赞赏不能为空", groups = { AddGroup.class, EditGroup.class })
    private String admire;

    /**
     * 订阅
     */
    @NotBlank(message = "订阅不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subscribe;

    /**
     * 简介
     */
    @NotBlank(message = "简介不能为空", groups = { AddGroup.class, EditGroup.class })
    private String introduction;

    /**
     * 用户类型[0:admin，1:管理员，2:普通用户]
     */
    @NotNull(message = "用户类型[0:admin，1:管理员，2:普通用户]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userType;

    /**
     * 是否启用[0:未删除，1:已删除]
     */
    @NotNull(message = "是否启用[0:未删除，1:已删除]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer deleted;



}
